﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Text;

namespace DataAccess
{
    public class Security
    {
        public static string Encrypt(string t)
        {
            return t;
            //StringBuilder sb = new StringBuilder();
            //for (int i = 0; i < t.Length; i++)
            //{
            //    sb.Append((char)(t[i] + 23));
            //}
            //return sb.ToString();
        }
        public static string Decrypt(string t)
        {
            return t;
            //StringBuilder sb = new StringBuilder();
            //for (int i = 0; i < t.Length; i++)
            //{
            //    sb.Append((char)(t[i] - 23));
            //}
            //return sb.ToString();
        }

        internal static string GetMd5Sum(string p)
        {
            return p.GetHashCode().ToString() + p.GetHashCode().ToString();
        }
    }
}
